# $Id: PKGBUILD 88277 2013-04-15 15:40:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Norberto Lopes <shelika@mail.telepac.pt>

pkgname=wanderlust
#pkgver=2.15.9
pkgver=20130415
pkgrel=1
pkgdesc="Mail/News reader supporting IMAP4rev1 for emacs."
arch=(any)
url="http://www.gohome.org/wl"
license=('GPL')
depends=('emacs' 'emacs-apel>=10.7' 'flim' 'semi')
makedepends=('cvs' 'bbdb')
optdepends=('bbdb: contact management utility')
install=wanderlust.install
source=("wanderlust-$pkgver.zip::https://github.com/wanderlust/wanderlust/zipball/master")
md5sums=('f05dafa9c0ace1d46096e4b6a28ef81e')

package() {
  cd `find $srcdir/ -name wanderlust-\* -type d`
  PIXMAPDIR=/usr/share/emacs/`emacs -batch -eval "(princ (format \"%d.%d\" emacs-major-version emacs-minor-version))"`/etc/wl/icons/
  install -dm0755 $pkgdir/usr/share/info
  make all info
  make install install-info \
	LISPDIR=$pkgdir/usr/share/emacs/site-lisp \
	PIXMAPDIR=$pkgdir$PIXMAPDIR \
	INFODIR=$pkgdir/usr/share/info
  install -m644 utils/ssl.el $pkgdir/usr/share/emacs/site-lisp/ssl.el
}
